package propertyfile;

import propertyfile.guice.PropertiesModule;
import propertyfile.impl.MadLibs;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;

public class Main {

	/**
	 * @param args
	 */
    public static void main(String[] args) {
        Module propertiesMoudule = new PropertiesModule();
        Injector inj = Guice.createInjector(propertiesMoudule);
        MadLibs madLibs = inj.getInstance(MadLibs.class);
        String joke = madLibs.getJoke();
        System.out.println(joke);
    }

}
